@import '~@/style/base.less';
@text_color: #242930;
// @margin: 14px 0;
@space: 24px;
@vertical_space: 16px;
@color_border_simple: #E4E4E4;
@color_tag: #f05168;

.layout() {
  background: #ffffff;
  border-radius: 16px;
  margin: @vertical_space @space;
}

.orderdetail_wrap {
  background: #F7F8F9;

  .table_code_wrap {
    .layout();

    .table_code_info {
      padding: 34px 24px 30px;

      >div {
        .frow (space-between, center);

        .braName {
          font-size: 32px;
          color: #000;
          font-weight: bold;
        }

        button {
          height: 46px;
          border-radius: 8px;
          color: @color_theme;
          border: 1px solid @color_theme;
          font-size: 24px;
          padding: 0 27px;
          background: transparent;

          &:active {
            transform: scale(0.8);
          }
        }

        &:nth-child(2) {
          color: #999999;
          font-size: 28px;
          margin-top: 28px;
        }
      }
      .tag {
        border-radius: 6px;
        padding: 3px 5px;
        font-size: 20px;
        border: 1px solid #ddd;
        // color: @color_price;
      }
    }

    .btns {
      height: 87px;
      .frow(center, center);
      position: relative;
      .hairline(top, @color_border_simple);
      padding: 11px 0;

      button {
        border: none;
        flex: 1;
        .frow(center, center);
        height: 100%;
        background: transparent;

        &:active {
          transform: scale(0.8);
        }

        &:nth-child(1) {
          position: relative;
          .hairline(right, @color_border_simple);
        }
      }

      .to_order_icon,
      .notice_icon {
        display: inline-block;
        flex: 0 0 auto;
        width: 42px;
        height: 42px;
        border: 0;
        background-color: transparent;
        background-size: 42px auto;
        background-position: center;
        background-repeat: no-repeat;
        transform: scale(1);
        font-size: 0;
        transition: 0.3s;
        transition-property: transform;

        &:active {
          transform: scale(0.8);
        }
      }

      .to_order_icon {
        background-image: url('~@/assets/images/to_order_icon.png');
      }

      .notice_icon {
        background-image: url('~@/assets/images/notice_icon.png');

      }
    }
  }

  .login_remind_wrap {
    .layout();
    background: url('~@/assets/images/login_remind_bg.png') center no-repeat;
    background-size: 100% auto;
    height: 130px;
    .frow(space-between, center);
    padding: 0 26px;

    >div {
      &:nth-child(1) {
        .frow(center, center);
      }
    }

    .avatar {
      display: inline-block;
      width: 46px;
      height: 46px;
      background: url('~@/assets/images/avatar.png') center no-repeat;
      background-size: 46px auto;
      font-size: 0;
      margin-right: 25px;

      +span {
        color: #fff;
        .frow(flex-start, flex-start, column);
        font-size: 30px;
        color: #fff;
        max-width: 100px;

        >i {
          white-space: pre;

          &:nth-child(2) {
            font-size: 18px;
            color: #999;
            margin-top: 12px;
          }
        }
      }
    }

    button {
      background: linear-gradient(to right, #FFB300, #FFC900);
      box-shadow: 0px 4px 8px 0px rgba(85, 57, 11, 0.68);
      height: 58px;
      border-radius: 29px;
      padding: 0 20px;
      font-size: 26px;
      border: none;
      white-space: pre;
      color: #8E2E2C;
      &:active {
        transform: scale(0.8);
      }
    }

    :global {
      animation: bounceIn 600ms;
      animation-fill-mode: both;
    }
  }
  .member_wrap {
    .layout();
    background: url('~@/assets/images/member_card_bg.png') center no-repeat;
    background-size: 100% auto;
    height: 130px;
    .frow(space-between, center);
    padding: 0 26px;
    >div {
      .frow(center, center);
      i {
        display: inline-block;
        background: url('~@/assets/images/member_vip.png') center no-repeat;
        background-size: 66px auto;
        width: 66px;
        height: 66px;
      }
      span {
        font-size: 30px;
        color: #fff;
        margin-left: 16px;
      }
    }
   
    button {
      color: #8E2E2C;
      background: linear-gradient(to right, #FFB300, #FFC900);
      border-radius: 29px;
      box-shadow: 0px 4px 8px 0px rgba(85, 57, 11, 0.68);
      font-size: 24px;
      padding: 13px 20px;
      border: none;
      i {
        &:nth-child(1) {
          margin-right: 10px
        }
       &.d_more {
          width: 9px;
          display: inline-block;
          height: 14px;
          background: url("~@/assets/images/more_icon.png") right center no-repeat;
          background-size: auto 14px;
        }
      }
    }
  } 

  .integral_wrap {
    .layout();
    padding: 30px 24px;
    .integral_picker {
      .frow(space-between, center);
      label {
        font-size: 30px;
        color: @color_text;
      }
    }
    .integral_number{
      .hasMore();
      font-size: 28px;
      color: @color_subtext;
    }
    .integral_info {
      .frow(space-between, center);
      font-size: 28px;
      color: @color_subtext;
      margin-top: 20px;
    }
  }

}


.order_products {
  .layout();
  padding-bottom: @vertical_space;
  &.cancel {
    filter: brightness(0.9);
  }

  .title {
    font-size: 28px;
    height: 100px;
    color: #666;
    display: flex;
    align-items: center;
    padding: 0 @space;
    position: relative;
    .hairline(bottom, @color_border_simple);
  }

  .hideControl {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    background: #f6f6f6;
    border-radius: 29px;
    font-size: 28px;
    color: #999999;
    margin: 28px 128px;

    >i {
      flex: 0 0 auto;
      width: 56px;
      height: 56px;
      background: url('~@/assets/images/shop_down@2x.png') center no-repeat;
      background-size: 30px auto;
      transition: 0.5s;
      transition-property: transform;

      &.active {
        transform: rotate(180deg);
      }
    }
  }

  // .need_pay {
  //   line-height: 100px;
  //   text-align: right;
  //   font-size: 40px;
  //   font-weight: bold;
  //   padding: 0 @space;
  //   border-top: 1px solid @color_border_simple;
  //   > i {
  //     font-size: 24px;
  //     margin-right: 24px;
  //     font-weight: normal;
  //   }
  // }

}

.orderstatus_wrap {
  height: 150px;
  .layout();
  background: #3B3B3B;
  &.has_bg {
    background: url('~@/assets/images/order_desc_bg.png') center no-repeat;
    background-size: auto 180px;
  }
  .frow(flex-start, center);
  padding-left: 23px;
  .order_status_icon {
    display: block;
    width: 45px;
    height: 45px;
    // background: url('~@/assets/images/order_comfirm_icon.png') center no-repeat;
    background-size: 45px auto;
    margin-right: 23px;
  }
  span {
    &:nth-child(2) {
      i{
        font-size: 20px;
        color: #999;
        &:nth-child(1) {
          font-size: 30px;
          margin-bottom: 23px;
          color: #fff;
        }
      
      }
      .frow(flex-start, flex-start, column);
      
    }
  }
  :global {
    animation: backInDown 600ms;
    animation-fill-mode: both;
  }
}

.order_payment {
  .layout();

  .under {
    color: @color_price;
  }

  .need_pay {
    line-height: 100px;
    text-align: right;
    font-size: 40px;
    font-weight: bold;
    padding: 0 @space;
    border-top: 1px solid @color_border_simple;

    >i {
      font-size: 24px;
      margin-right: 24px;
      font-weight: normal;
    }
  }
}

.remark_wrap {
  .layout();
}

.info_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  padding: 0 @space;
  color: #333333;
  font-size: 30px;

  &+& {
    position: relative;
    .hairline(top, @color_border_simple);
    // border-top: 1px solid @color_border_simple;
    // .hairline(top, @color_border_simple);
  }

  .rt_mg {
    margin-right: 30px;
  }

  >label {
    font-size: 32px;
    margin-right: 20px;
    flex: 0 0 auto;
  }

  .input_text {
    border: 0;
    text-align: right;
    flex: 1 1 500px;
    font-size: 28px;
    padding: 0;

    &::placeholder {
      color: #999999;
    }
  }

  .tag {
    display: inline-block;
    vertical-align: middle;
    line-height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 230, 230, 1);
    color: @color_tag;
    font-size: 20px;
  }

  .tips {
    color: @color_subtext;
  }

  .holder {
    color: @color_subtext;
  }
}

.remark_item {
  .frow(flex-start, center);
  height: 100px;
  padding: 0 @space;
  color: #999;
  font-size: 30px;

  // border-top: 1px solid @color_border_simple;

  >.remark {
    display: inline-block;
    margin-left: 100px;
    flex: 1;
  }

  &+& {
    // border-top: 1px solid @color_border_simple;
    position: relative;
    .hairline(top, @color_border_simple);
  }
}

.product_item {
  display: flex;
  // padding: 0 14px;
  padding: 0 14px;
  position: relative;
  .frow(center, center);

  &+& {
    .hairline(bottom, @color_border_simple);
  }

  // &:not(:last-child) {


  // }

  &+& {
    // .info {
    //   border-top: 1px solid @color_border_simple;
    // }
  }

  .pic {
    flex: 0 0 auto;
    width: 88px;
    height: 88px;
    border-radius: 8px;
    margin: 32px 16px 0 0;
    object-fit: cover;
    border-radius: 8px;
    overflow: hidden;
  }

  .info {
    flex: 1 1;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    padding: 32px 0;
  }

  .name {
    font-size: 28px;
    margin: 0 0 16px;
    .frow(flex-start, center);
    i {
      &:nth-child(1) {
        max-width: 3.5rem;
        display: inline-block;
      }
    }
    .detailStatus {
      display: inline-block;
      padding: 0 5px;
      font-size: 18px;
      margin-left: 10px;
      border-radius: 6px;
      border:1px solid #ddd;
      color: #999;
    }
  }

  .spec {
    margin: 0;
    font-size: 26px;
    line-height: 32px;
    color: @color_price;

    .spec_num {
      color: @color_subtext;
    }

    :first-child {
      padding-right: 21px;

    }
  }

  .goods_info {
    flex: 1 1 auto;
    margin-right: 16px;
    >div {
      .frow(space-between, center)
    }
    .price {
      color: @color_price;
    }
  }

  .price_info {
    flex: 0 0 auto;
    font-size: 30px;
    line-height: 36px;
    color: @color_price;

    >span {
      display: block;
    }
  }
}

.pay_wrap,
.pay_hidden,
.pay_main {
  height: 100px;
}

.pay_hidden {
  margin-bottom: 24px;
}

.pay_main {
  z-index: 9;
  bottom: 0;
  background: #ffffff;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  // .footShadow();
  left: 24px;
  right: 24px;
  bottom: 24px;
  border-radius: 49px;
  overflow: hidden;

  .real_amount {
    flex: 0 0 auto;
    font-size: 48px;
    margin-right: 32px;
    color: @color_price;
  }

  .pay_button {
    .buttonBg();
    flex: 0 0 auto;
    height: 100px;
    border: 0;
    min-width: 212px;
    padding: 0 50px;
    font-size: 34px;
    font-weight: bold;

    &:active {
      transform: scale(0.8);
    }
  }
}
